package com.easyweb.session;

import com.easyweb.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("ilceList")
public class IlceList extends EntityQuery<Ilce> {

	private static final String EJBQL = "select ilce from Ilce ilce";

	private static final String[] RESTRICTIONS = { "lower(ilce.ilceAdi) like lower(concat(#{ilceList.ilce.ilceAdi},'%'))", };

	private Ilce ilce = new Ilce();

	public IlceList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Ilce getIlce() {
		return ilce;
	}
}
